package com.woniu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户个人资料实体类
 * @author 李松桦
 * @data 2023/3/4 12:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UsersInfo {

    private Integer id;

    private String phone; //用户手机号

    private String nickname; //用户昵称

    private Boolean gender; // 0:男 1：女

    private String icon; //头像存放路径

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday; //生日

    private Integer levels; //会员等级

    private Date createTime;

    private Date updateTime;

    private Integer credit; //用户积分


}
